libxl: Tell qemu to use raw format when using a tapdisk
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Tue, 9 Dec 2014 14:04:19 +0000 (14:04 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 16 Dec 2014 12:47:41 +0000 (12:47 +0000)
commit7e88c23239591e2638bcc944151a660fcd53495b
tree2da96277e719a53bbd260948ae48a584987518d7
parent09b7ff1a118f5e920ef12f5592f3ce991218962a
libxl: Tell qemu to use raw format when using a tapdisk

At the moment libxl unconditinally passes the underlying file format
to qemu in the device string.  However, when tapdisk is in use,
tapdisk handles the underlying format and presents qemu with
effectively a raw disk.  When qemu looks at the tapdisk block device
and doesn't find the image format it was looking for, it will fail.

This effectively means that tapdisk cannot be used with HVM domains at
the moment except for raw files.

Instead, if we're using a tapdisk backend, tell qemu to use a raw file
format.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ ijc -- nuked extra blank line ]
tools/libxl/libxl_dm.c